package com.ruiysoft.entity.sys;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author huazengguang
 * @since 2018-12-29
 */
@TableName("sys_user_shop_relation")
public class SysUserShopRelation extends Model<SysUserShopRelation> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField("user_id")
    private Long userId;

    @TableField("shop_id")
    private Long shopId;

    @TableField("create_time")
    private Date createTime;

    public Long getId() {
        return id;
    }

    public SysUserShopRelation setId(Long id) {
        this.id = id;
        return this;
    }
    public Long getUserId() {
        return userId;
    }

    public SysUserShopRelation setUserId(Long userId) {
        this.userId = userId;
        return this;
    }
    public Long getShopId() {
        return shopId;
    }

    public SysUserShopRelation setShopId(Long shopId) {
        this.shopId = shopId;
        return this;
    }
    public Date getCreateTime() {
        return createTime;
    }

    public SysUserShopRelation setCreateTime(Date createTime) {
        this.createTime = createTime;
        return this;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "SysUserShopRelation{" +
        "id=" + id +
        ", userId=" + userId +
        ", shopId=" + shopId +
        ", createTime=" + createTime +
        "}";
    }
}
